home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 483 / mkrscsrc / gnu.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-29  |  460 b   |  26 lines

  1. #include <gemfast.h>
  2. #include "globals.h"
  3. /*
  4.  * megamax compatibility routines for gcc
  5.  *  ++jrb    bammi@dsrgsun.ces.cwru.edu
  6.  */
  7. void rect_set( GRECT *r, int x, int y, int w, int h)
  8. {
  9.     r->g_x = x;
  10.     r->g_y = y;
  11.     r->g_w = w;
  12.     r->g_h = h;
  13. }
  14.  
  15. char *xtrcpy(char *dest, char *src)
  16. {
  17.     /* like strcpy but returns pointer to end of dest */
  18.     if(!src)
  19.     return dest;    /* gigo */
  20.     
  21.     while(*src)
  22.     *dest++ = *src++;
  23.     *dest = '\0';
  24.     return dest;
  25. }
  26.